/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.ufpb.halloc.dados;

/**
 *
 * @author kawe
 */
public abstract class ProjetoDAOFactory {
    
    public static int FILE = 1;
    public static int BD = 2;
    
    public abstract ProjetoDAO getProjetoDAO(int tipo);
    
    public static ProjetoDAOFactory getInstanceProjetoDAOFactory(int tipo){
        
        switch(tipo){
            
            case 1: return ProjetoDAOArquivoFactory.getInstance();
            
            case 2: return ProjetoDAOBDFactory.getInstance();    
            
            default: return null;    
        }
        
    }
}
